home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / mardek_rpg.swf / scripts / frame_56 / DoAction.as
Encoding:
Text File  |  2011-09-19  |  5.3 KB  |  120 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 1646 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = 223 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 788)
  9.    {
  10.       set("\x01",eval("\x01") + 208);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 700)
  14.    {
  15.       set("\x01",eval("\x01") + 63);
  16.    }
  17.    else if(eval("\x01") == 658)
  18.    {
  19.       set("\x01",eval("\x01") - 643);
  20.       ┬º┬ºpush("\x0f");
  21.    }
  22.    else
  23.    {
  24.       if(eval("\x01") == 763)
  25.       {
  26.          set("\x01",eval("\x01") - 704);
  27.          map = [[2,2,2,2,2,2,2,2,2,6,41,13,13,13,13,39,4,2,2,2,2,2],[2,2,2,2,2,2,2,2,2,6,41,13,13,13,40,35,4,2,2,2,2,2],[2,2,2,2,2,2,2,2,2,6,41,13,13,39,8,5,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,2,10,41,13,13,39,4,2,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,6,52,13,13,13,39,4,2,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,6,37,13,13,13,35,4,2,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,6,41,13,13,39,8,2,2,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,6,41,13,13,39,4,2,2,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,6,41,13,13,39,7,2,2,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,6,36,13,13,13,51,2,2,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,2,9,41,13,13,38,7,2,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,2,6,36,13,13,39,51,4,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,2,2,9,41,13,13,38,4,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,2,2,10,41,13,13,39,7,2,2,2,2,2,2],[2,2,2,2,2,2,2,2,2,10,52,41,13,13,39,51,7,2,2,2,2,2],[2,2,2,2,2,2,2,2,10,52,37,13,13,13,13,38,51,4,2,2,2,2],[2,2,2,2,2,2,2,10,52,37,13,13,13,13,13,13,38,4,2,2,2,2],[2,2,2,2,2,2,10,52,37,13,13,13,13,13,13,13,35,7,2,2,2,2],[2,2,2,2,2,10,52,37,13,13,13,13,13,13,13,39,0,51,4,2,2,2],[2,2,2,2,6,52,37,13,13,13,13,13,13,13,13,39,0,54,4,2,2,2],[2,2,2,2,10,37,13,13,13,13,13,13,13,13,13,39,0,0,4,2,2,2],[2,2,2,6,52,41,13,13,13,13,13,13,13,13,13,39,0,0,4,2,2,2],[2,2,2,6,37,13,13,13,13,13,13,13,13,13,13,39,0,0,4,2,2,2],[2,2,2,6,41,13,13,13,13,13,13,13,13,13,13,39,0,8,2,2,2,2],[2,2,2,10,41,13,13,13,13,13,13,13,13,13,13,39,0,4,2,2,2,2],[2,2,10,52,41,13,13,13,13,13,13,13,13,13,13,39,0,4,2,2,2,2],[2,6,52,37,13,13,13,13,13,13,13,13,13,13,13,35,0,4,2,2,2,2],[2,6,37,13,13,13,13,13,13,13,13,13,13,13,39,0,0,4,2,2,2,2],[2,6,36,40,13,13,13,13,13,13,13,13,13,13,35,0,0,4,2,2,2,2],[2,6,0,0,41,13,13,13,13,13,13,13,13,39,0,0,0,4,2,2,2,2],[2,6,54,0,41,13,13,13,13,13,13,13,13,39,0,0,8,2,2,2,2,2],[2,10,0,0,36,13,13,13,55,13,13,13,13,35,0,11,4,2,2,2,2,2],[6,15,0,0,0,36,13,13,55,13,13,13,35,0,0,8,2,2,2,2,2,2],[6,0,0,0,0,0,36,13,55,13,13,35,54,0,0,7,3,3,3,2,2,2],[2,5,9,0,0,0,0,36,55,40,35,0,0,0,0,51,16,1,1,7,3,2],[2,2,6,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,16,2],[2,2,2,9,0,0,0,0,0,0,0,0,0,0,8,5,5,9,0,0,0,4],[2,2,2,2,5,9,0,54,0,0,0,11,0,8,2,2,2,6,0,0,0,4],[2,2,2,2,2,2,5,5,5,5,5,5,5,2,2,2,2,6,0,0,11,4],[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,2]];
  28.          tileset = "t_cave4";
  29.          area = "gemmine6";
  30.          areaname = "Gem Mine";
  31.          ambience = null;
  32.          A_sprites = [{name:"exit",model:"area_transition",x:1,y:32,dest:["gemmine4",18,7]}];
  33.          areaLoot = [{x:20,y:36,amount:1,item:"FirePendant"},{x:20,y:37,type:"gold",amount:432},{x:18,y:38,amount:1,item:"Bandit Leather"},{x:19,y:38,amount:2,item:"PhoenixDown"}];
  34.          foes = [["LeechBat","LeechBat",null,null,"DUO"],["LeechBat","LeechBat","LeechBat",null,"TRIO"],["Drillhound","LeechBat","LeechBat",null,"TRIO"],["Drillhound",null,null,null,"SOLO"],["BrownMantid",null,null,null,"SOLO"],["Chrysophage",null,null,null,"SOLO"]];
  35.          btlChance = 3;
  36.          minSteps = 5;
  37.          levelrange = [2,4];
  38.          musicTrack = "Dungeon2";
  39.          AreaSetup({WARP:1});
  40.          break;
  41.       }
  42.       if(eval("\x01") == 15)
  43.       {
  44.          set("\x01",eval("\x01") + 306);
  45.          ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  46.          {
  47.             return 1646 % 511 * 5;
  48.          }));
  49.       }
  50.       else if(eval("\x01") == 321)
  51.       {
  52.          set("\x01",eval("\x01") + 22);
  53.          ┬º┬ºpush(!function ┬º\x01\x02┬º()
  54.          {
  55.             return 1646 % 511 * 5;
  56.          });
  57.       }
  58.       else
  59.       {
  60.          if(eval("\x01") == 484)
  61.          {
  62.             set("\x01",eval("\x01") + 236);
  63.             break;
  64.          }
  65.          if(eval("\x01") == 466)
  66.          {
  67.             set("\x01",eval("\x01") + 192);
  68.             var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  69.             {
  70.                return 1646 % 511 * 5;
  71.             };
  72.          }
  73.          else if(eval("\x01") == 720)
  74.          {
  75.             set("\x01",eval("\x01") + 274);
  76.          }
  77.          else if(eval("\x01") == 994)
  78.          {
  79.             set("\x01",eval("\x01") - 528);
  80.             ┬º┬ºpush("\x0f");
  81.             ┬º┬ºpush(1);
  82.          }
  83.          else if(eval("\x01") == 996)
  84.          {
  85.             set("\x01",eval("\x01") - 512);
  86.             if(function ┬º\x01\x02┬º()
  87.             {
  88.                return 1646 % 511 * 5;
  89.             })
  90.             {
  91.                set("\x01",eval("\x01") + 236);
  92.             }
  93.          }
  94.          else if(eval("\x01") == 892)
  95.          {
  96.             set("\x01",eval("\x01") + 102);
  97.          }
  98.          else
  99.          {
  100.             if(eval("\x01") != 343)
  101.             {
  102.                if(eval("\x01") == 59)
  103.                {
  104.                   set("\x01",eval("\x01") - 59);
  105.                }
  106.                break;
  107.             }
  108.             set("\x01",eval("\x01") + 357);
  109.             if(function ┬º\x01\x02┬º()
  110.             {
  111.                return 1646 % 511 * 5;
  112.             })
  113.             {
  114.                set("\x01",eval("\x01") + 63);
  115.             }
  116.          }
  117.       }
  118.    }
  119. }
  120.